#include "./../Include/public.h"
void store_stu()
{
	FILE *fp = fopen("./data/ret_stu.txt","w");
	struct stu *p = head_stu;
	while (p != NULL) {
		fprintf(fp, "%s %s %d", p->sno, p->name, p->courses[0]);
		for(int i=0;i<p->courses[0];i++) {
			fprintf(fp, " %d",p->courses[i+1]);
		}
		fprintf(fp, " %d\n",p->sum);
		p = p->next;
	}
	
	fclose(fp);
	
}
